<div class="banners form">
<?php echo $this->ExtendedForm->create('Banner', array('novalidate' => 'novalidate'));?>
	<h3><?php echo __d('admin', 'Add Banner'); ?></h3>
	<?php
		if(isset($this->request->params['named']['menu_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('menu_id', array_merge(array('label' => __d('admin', 'Menu')), array('options' => $menusSelect, 'empty' => '- ' . __d('admin', 'Choose a Menu') . ' -')));
		if(isset($this->request->params['named']['menu_id'])) echo '</div>';

		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Banner VN'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['image'])) echo '</div>';
        echo "<hr>";
		if(isset($this->request->params['named']['image_eng'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image_eng', array_merge(array('type'=> 'image','label' => __d('admin', 'Banner Eng'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['image_eng'])) echo '</div>';
        echo "<hr>";
		if(isset($this->request->params['named']['image_jpn'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image_jpn', array_merge(array('type'=> 'image','label' => __d('admin', 'Banner Jpn'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['image_jpn'])) echo '</div>';

	?>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Banner'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="form-group">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div>'));?>
</div>
<script>
$(document).ready(function(){
	$('.fileupload-preview').css('width', '100%');
});
</script>